//******* For More Tutorial - NAYCode.com
public Task SaveEmployeeAsync(Employee emp)
{
return _db.InsertAsync(emp);
}
//********* NAYCode.com
public void SaveRegister(string str_user)
{
Employee emp = new Employee();
emp.EmpID= txtEmp.Text;
emp.EmpNo = txtEmp.Text;
emp.UserName = str_user;
emp.DeviceID= "test";
emp.IsActive = 0;
emp.IsRegister = 1;
App.EmpDB.SaveEmployeeAsync(emp);
}